Hi, I'm trying to set up a docker-less installatio...
# install
a
Hi, I'm trying to set up a docker-less installation and I can't seem to configure the apiconnstring correctly. Any advice? Going through the source it looks like it should be
apiconn: "api.basedomain:443"
inside the environment yaml, but I'm still getting an empty conn string in the generated access keys. FWIW the documentation seems a bit outdated in that it only mentions the
SERVER_API_CONN_STRING
env var (in the advanced server installation docs)
b
yes it should be api.basedomain:443
docs are being updated
a
I have that configured, but it doesn't seem to be inserted in the access keys
Copy code
yaml
server:
  apiconn: "api.basedomain:443"
  apihost: "api.basedomain"
  #host:
  apiport: "8081"
  masterkey: "secretkey"
  allowedorigin: "*"
  restbackend: true
  agentbackend: true
  dnsmode: "on"
b
are you sure it is being loaded?
a
this generates an access key e.g.
eyJhcGljb25uc3RyaW5nIjoiIiwibmV0d29yayI6InRlc3QiLCJrZXkiOiIyNDA3NDc5MjMwZmNmYmExIiwibG9jYWxyYW5nZSI6IiJ9
, which decodes to an empty apiconnstring
b
are you using -c flag
netmaker -c
a
Ah, is that required? I thought dev.yaml would be loaded by default if none other is specified
FWIW this isn't going to be a production setup, I just wanted a dev environment so I could test a bugfix and make a PR :D
b
easy to tell if yml file was loaded or not .. if not you will get warning about masterkey not set
a
in that case, it wasn't being loaded. That'd do it! Thanks.
2 Views